﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace KinBot_Controller_V2
{
     

   public class imageChanger
    {
        
        //URI for ICONS
        Uri camerOn = new Uri("Images/camera-lens-on.png", UriKind.Relative);
        Uri camerOff = new Uri("Images/camera-lens.png", UriKind.Relative);
        Uri powerOn = new Uri("Images/power-on.png", UriKind.Relative);
        Uri powerOff = new Uri("Images/power.png", UriKind.Relative);
        Uri downArrowOn = new Uri("Images/downArrowOn.png", UriKind.Relative);
        Uri downArrowOff = new Uri("Images/downArrow.png", UriKind.Relative);
        Uri upArrowOn = new Uri("Images/upArrowOn.png", UriKind.Relative);
        Uri upArrowOff = new Uri("Images/upArrow.png", UriKind.Relative);
        Uri lightOn = new Uri("Images/Light-Bulb-On.png", UriKind.Relative);
        Uri lightOff = new Uri("Images/Light-Bulb.png", UriKind.Relative);
        Uri micOn = new Uri("Images/micOn.png", UriKind.Relative);
        Uri micOff = new Uri("Images/micOff.png", UriKind.Relative);

      
        public BitmapImage setImages(string image)
        {  
            
            BitmapImage tempBitmap = new BitmapImage();

            switch (image)
            {
                case "start":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = powerOn;
                    tempBitmap.EndInit();
                    return tempBitmap;

                case "micOn":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = micOn;
                    tempBitmap.EndInit();
                    return tempBitmap;

                case "micOff":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = micOff;
                    tempBitmap.EndInit();
                    return tempBitmap;
                

                case "stop":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = powerOff;
                    tempBitmap.EndInit();
                    return tempBitmap;
               

                case "lightOn":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = lightOn;
                    tempBitmap.EndInit();
                    return tempBitmap;
                  

                case "lightOff":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = lightOff;
                    tempBitmap.EndInit();
                    return tempBitmap;


                case "cameraOn":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = camerOn;
                    tempBitmap.EndInit();
                    return tempBitmap;


                case "cameraOff":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = camerOff;
                    tempBitmap.EndInit();
                    return tempBitmap;

                case "cameraUp":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = upArrowOn;
                    tempBitmap.EndInit();
                    return tempBitmap;

                case "cameraUpOff":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = upArrowOff;
                    tempBitmap.EndInit();
                    return tempBitmap;

                case "cameraDown":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = downArrowOn;
                    tempBitmap.EndInit();
                    return tempBitmap;

                case "cameraDownOff":
                    tempBitmap.BeginInit();
                    tempBitmap.UriSource = downArrowOff;
                    tempBitmap.EndInit();
                    return tempBitmap;
               
                
                
            }

            return tempBitmap;
           
        }
    }
}
